package com.top.mall.jetpack.ma

import com.top.mall.app.BaseApplication
import com.top.mall.base.BaseManager
import com.top.mall.entity.*
import rxhttp.RxHttp
import rxhttp.await

class AccessManager : BaseManager() {

    /**
     * 首页数据
     * */
    suspend fun accessLogin(mobile: String, password: String): UserInfoResponse =
        RxHttp.postForm("/api/user/login")
            .add("mobile", mobile)
            .add("password", password)
            .await()
}